package com.hsnn.medstgmini.complain.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsnn.medstgmini.complain.dao.SysComplainAttachmentDao;
import com.hsnn.medstgmini.complain.model.SysComplainAttachment;
import com.hsnn.medstgmini.complain.service.SysComplainAttachmentManager;

/**
 * @category 申投诉附件表SERVICE接口实现类
 * @author 韩守松
 * @date 2015年10月9日
 */

@Service
public class SysComplainAttachmentManagerImpl implements SysComplainAttachmentManager{
	
	@Autowired
	private SysComplainAttachmentDao sysComplainAttachmentDao;
	/**
	 * @category 保存申投诉相关证明路径
	 * @author 韩守松
	 * @date   2015年10月9日
	 * @param  @param sysComplainAttachment
	 */
	@Transactional
	public void save(SysComplainAttachment sysComplainAttachment) {
		sysComplainAttachmentDao.save(sysComplainAttachment);
	}

	@Override
	public List<SysComplainAttachment> getSysComplainById(String complainId) {
		return sysComplainAttachmentDao.getSysComplainById(complainId);
	}
	
}
